home *** CD-ROM | disk | FTP | other *** search
/ Flushed Away Press Kit / FLUSHED AWAY.iso / pc / main.dxr / SCRIPTS_58_textScript.ls < prev    next >
Encoding:
Text File  |  2006-10-04  |  829 b   |  24 lines

  1. property fileSeperator, fileFolder
  2. global downloadList
  3.  
  4. on beginSprite me
  5.   fileSeperator = fileSeperator()
  6.   if downloadList.count = 0 then
  7.   else
  8.     repeat with x = 1 to downloadList.count
  9.       saveFile = the moviePath & downloadList[x][1] & fileSeperator & downloadList[x][2] & "." & downloadList[x][3]
  10.       fileSize = baFileSize(saveFile)
  11.       totalSize = totalSize + fileSize
  12.     end repeat
  13.     set the floatPrecision to 1
  14.     totalSize = float(totalSize) / float(1000000)
  15.     fileCount = downloadList.count
  16.     if fileCount = 1 then
  17.       files = "file,"
  18.     else
  19.       files = "files,"
  20.     end if
  21.     member("textBox").text = "You have selected" && fileCount && files && "which will take up approximately" && totalSize && "MB of space on your hard drive. Please choose from one of the following options:"
  22.   end if
  23. end
  24.